var pageii = null;
var grid = null;
$(function() {
	grid = lyGrid({
		pagId : 'paging',
		l_column : [ {
			colkey : "id",
			name : "id"
		},{
			colkey : "create_time",
			name : "日期",
			renderData : function(rowindex,data, rowdata, column) {
				return new Date(data).format("yyyy-MM-dd hh:mm:ss");
		}
		},{
			colkey : "machine_no",
			name : "机台号"
		}, {
			colkey : "now_mold_encode",
			name : "生产模具号"
		}, {
			colkey : "consumption",
			name : "原料耗用数"
		},{
			colkey : "finish_time",
			name : "够产时间"
		},{
			colkey : "order_number",
			name : "生产订单数"
		},{
			colkey : "countdown_time",
			name : "倒计时",
		},{
			colkey : "state",
			name : "状态"
		},{
			colkey : "operation",
			name : "操作"
		},],
		jsonUrl : rootPath + '/instructions/directive_findByPage.shtml',
		dymCol:true,
		checkbox : true,
		serNumber : false
	});
	$("#search").click("click", function() {// 绑定查询按扭
		var searchParams = $("#searchForm").serializeJson();
		grid.setOptions({
			data : searchParams
		});
	});
	
});
